//分页条件查询 五个参数 =====>对象
import instance from '../utils/request'

export function searchPage(searchParams) {
   return instance.get("/product/getyyy",{params:searchParams});
}

export function deleteById(id){
   return instance.delete(`/brand/delete/${id}`);
}

export function addEntity(entity) {
   return instance.post(`/brand/save`,entity);
}
export function searchColors() {
   return instance.get(`/product/getcolor`);
}
export function searchBrands() {
   return instance.get(`/product/getbrand`);
}
export function searchTypes() {
   return instance.get(`/product/gettype`);
}

